import request from "@/utils/request";
export function listRoomtype(query) {
  return request({
    url: "/roomType/list",
    method: "get",
    params: query
  });
}
//添加房型
export function addRoomtype(data) {
  return request({
    url: "/roomType",
    method: "post",
    data: data
  });
}

//删除房型
export function deleteRoomtype(roomtypeId) {
  return request({
    url: "/roomType/delete/" + roomtypeId,
    method: "delete"
  });
}

//修改房型
export function editRoomtype(data) {
  return request({
    url: "/roomType",
    method: "put",
    data: data
  });
}
//查询房型
export function searchRoomtype(roomtypeId) {
  return request({
    url: "/roomType/" + roomtypeId,
    method: "put"
  });
}
